<%@ page import="com.press.bean.UserBean" %><%--
  Created by IntelliJ IDEA.
  User: haocongshun
  Date: 2016/10/3
  Time: 20:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    //登录限制
    UserBean adm = (UserBean) request.getSession().getAttribute("admin");
    if(adm==null){
        response.sendRedirect(request.getContextPath()+"/admin");
    }
%>

<!DOCTYPE HTML>
<html>
<head>
    <title>Press管理员</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="Modern Responsive web template, Bootstrap Web Templates, Flat Web Templates, Andriod Compatible web template,
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design" />
    <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
    <!-- Bootstrap Core CSS -->
    <link href="${CONTEXTPATH}/admin/static/css/bootstrap.min.css" rel='stylesheet' type='text/css' />
    <!-- Custom CSS -->
    <link href="${CONTEXTPATH}/admin/static/css/style.css" rel='stylesheet' type='text/css' />
    <!-- Graph CSS -->
    <link href="${CONTEXTPATH}/admin/static/css/lines.css" rel='stylesheet' type='text/css' />
    <link href="${CONTEXTPATH}/admin/static/css/font-awesome.css" rel="stylesheet">
    <link href="${CONTEXTPATH}/admin/static/css/bk.css" rel="stylesheet">
    <!-- jQuery -->
    <script src="${CONTEXTPATH}/admin/static/js/jquery.min.js"></script>
    <!----webfonts--->

    <!---//webfonts--->
    <!-- Nav CSS -->
    <link href="${CONTEXTPATH}/admin/static/css/custom.css" rel="stylesheet">
    <link href="${CONTEXTPATH}/admin/static/css/font-awesome.min.css" rel="stylesheet">
    <link href="${CONTEXTPATH}/admin/static/css/font-awesome.css" rel="stylesheet">
    <link href="${CONTEXTPATH}/admin/static/css/common.css" rel="stylesheet" >
    <!-- Metis Menu Plugin JavaScript -->
    <script src="${CONTEXTPATH}/admin/static/js/metisMenu.min.js"></script>
    <script src="${CONTEXTPATH}/admin/static/js/custom.js"></script>
    <!-- Graph JavaScript -->
    <script src="${CONTEXTPATH}/admin/static/js/d3.v3.js"></script>
    <script src="${CONTEXTPATH}/admin/static/js/rickshaw.js"></script>
    <script src="${CONTEXTPATH}/admin/static/js/bootstrap.min.js"></script>
    <script src="${CONTEXTPATH}/admin/static/js/util.js"></script>
    <script src="${CONTEXTPATH}/admin/static/js/jPages.js"></script>
</head>
<body>
<span id="contentPath" data-contextPath="<%=request.getContextPath()%>"></span>
<div id="wrapper">
    <!-- Navigation -->
    <nav class="top1 navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="${CONTEXTPATH}/admin/index.jsp">Press</a>
        </div>
        <!-- /.navbar-header -->
        <!--用户头像 -->
        <ul class="nav navbar-nav navbar-right">
            <li class="dropdown">
                <a href="#" class="dropdown-toggle avatar" data-toggle="dropdown"><img src="${CONTEXTPATH}${sessionScope.admin.user_avatar}"><span style="color: white;font-size: 14px;">${sessionScope.admin.user_nickname}，你好</span></a>
                <ul class="dropdown-menu">
                    <li class="m_2"><a href="${CONTEXTPATH}/admin/personalData.jsp"><i class="fa fa-barcode"></i> 个人资料</a></li>
                    <li class="m_2"><a href="${CONTEXTPATH}/admin/logout.jsp"><i class="fa fa-lock"></i> 退出</a></li>
                </ul>
            </li>
        </ul>
        <!--左侧菜单 -->
        <div class="navbar-default sidebar" role="navigation">
            <div class="sidebar-nav navbar-collapse">
                <ul class="nav" id="side-menu">
                    <li>
                        <a href="${CONTEXTPATH}/admin/index.jsp"><i class="fa fa-dashboard fa-fw nav_icon"></i>Press面板</a>
                    </li>
                    <li>
                        <a href="${CONTEXTPATH}/admin/personalData.jsp"><i class="fa fa-flask nav_icon"></i>个人资料</a>
                    </li>
                    <li>
                        <a href="#"><i class="fa fa-laptop nav_icon"></i>文章<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="${CONTEXTPATH}/ArticleController/getAllType.press">撰写文章</a>
                            </li>
                            <li>
                                <a href="${CONTEXTPATH}/admin/content/manageContent.jsp">管理文章</a>
                            </li>
                        </ul>
                        <!-- /.nav-second-level -->
                    </li>
                    <li>
                        <a href="#"><i class="fa fa-indent nav_icon"></i>分类<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="${CONTEXTPATH}/admin/taxonomy/createTaxonomy.jsp">添加分类</a>
                            </li>
                            <li>
                                <a href="${CONTEXTPATH}/admin/taxonomy/manageTaxonomy.jsp">管理分类</a>
                            </li>
                        </ul>
                        <!-- /.nav-second-level -->
                    </li>
                    <li>
                        <a href="#"><i class="fa fa-envelope nav_icon"></i>评论<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="${CONTEXTPATH}/admin/comment/manageComments.jsp">管理评论</a>
                            </li>
                        </ul>
                        <!-- /.nav-second-level -->
                    </li>

                    <li>
                        <a href="#"><i class="fa fa-check-square-o nav_icon"></i>用户<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="${CONTEXTPATH}/userManager/getAllUser.press">所有用户</a>
                            </li>
                            <li>
                                <a href="${CONTEXTPATH}/admin/user/addUser.jsp">添加用户</a>
                            </li>
                        </ul>
                        <!-- /.nav-second-level -->
                    </li>
                    <li>
                        <a href="#"><i class="fa fa-table nav_icon"></i>模板<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="${CONTEXTPATH}/admin/template/template.jsp">所有模板</a>
                            </li>
                            <li>
                                <a href="${CONTEXTPATH}/admin/template/installtemplate.jsp">模板安装</a>
                            </li>

                        </ul>
                        <!-- /.nav-second-level -->
                    </li>
                    <li>
                        <a href="#"><i class="fa fa-sitemap fa-fw nav_icon"></i>设置<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="${CONTEXTPATH}/admin/settings/regularSet.jsp">常规设置</a>
                            </li>
                            <li>
                                <a href="${CONTEXTPATH}/admin/settings/commentSet.jsp">评论设置</a>
                            </li>
                        </ul>
                        <!-- /.nav-second-level -->
                    </li>
                </ul>
            </div>
            <!-- /.sidebar-collapse -->
        </div>
        <!-- /.navbar-static-side -->
    </nav>
    <div id="page-wrapper" style="background: #f2f4f8;">
        <div class="graphs">
            <div class="xs">

